package ${projectName}.danwei.${fullBussiName?lower_case}.api.yilaiymincrement;

import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.ArrayList;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import luculent.fupin.runable.entity.Page;
import ${projectName}.Commons;
import ${projectName}.danwei.${fullBussiName?lower_case}.${bussiName?upper_case}CommonalityParam;
import ${projectName}.danwei.${fullBussiName?lower_case}.api.${bussiName?upper_case}PageCommand;
import ${projectName}.param.MapListParams;
/**   
 * @Title: YiLaiYeMaInfo
 * @Description: ${ftlDescription}
 * @author autoGenerator
 * @date ${ftlCreateTime}
 * @version V1.0   
 *
 */
@Service
public class ${bussiName?upper_case}YiLaiYeMaInfo extends ${bussiName?upper_case}PageCommand {

    
    @Autowired
    private ${bussiName?upper_case}CommonalityParam commonality;  
    

    private String              inSql  = "INSERT INTO HTTP_YLPAGENUMBERS (name,sendurl,apiname,total,pagenumbers,batch,state,time) VALUES(?,?,?,?,?,?,?,?)";
     
    private String            delSql = "delete from HTTP_YLPAGENUMBERS where name='" + name + "'";

    @Override
    public List<Page> getSends(){
        List<Page> list = new ArrayList<Page>();
        list.addAll (jibingjindugenzongliebiao()); 
        return list;
    }
     

    public List<Page> jibingjindugenzongliebiao(){ 
       // Map<String, String> map = new HashMap<String, String> ();
       // map.put ("iw-cmd", jibingjindugenzongliebiao);  
       // MapListParams list = new MapListParams (str,commonality.getQuHuaId ());
       // MapListParams list1 = new MapListParams (list,commonality.getChaKan ());
      //  List<String> rList = list1.prepare (map); 
      	//	  List<Page> pages = new ArrayList<Page>();
	//      for(String url : rList){
	//          Page page = new Page();
	//          page.setUrl (url);
	//          page.setBatch (Commons.batch);
	//          page.setApiName (jibingjindugenzongliebiao);
	//          pages.add (page);
	//      }
    //      return pages;  
     return  null;
    } 

    @Override
    public String getInSql(){
        return inSql;
    }

   	@Override
    public String getDelSql(){
        return delSql;
    }

}
